/*
  S.M.A.C.K - An operating system kernel
  Copyright (C) 2010,2011 Mattias Holm and Kristian Rietveld
  For licensing and a full list of authors of the kernel, see the files
  COPYING and AUTHORS.
*/
#ifndef KERNEL__STRING_H
#define KERNEL__STRING_H

#include <stddef.h>

void* memcpy(void *restrict s1, const void *restrict s2, size_t n);
void* memset(void *b, int c, size_t len);

// Binary compare of two null terminated strings
int strbcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, int len);

char* strchr(const char *s, int c);
size_t strlcpy(char *restrict s1, const char *restrict s2, size_t n);

size_t strnlen(const char *s, size_t n);


#endif /* !KERNEL__STRING_H */
